<?php

class CommonAction extends Action {

    function _initialize() {
        if (!$this->isLogin())
            $this->redirect('Member/login');

    }

    protected function isLogin() {
        return session('?m_user');
    }

}